#!/bin/bash

build_uboot()
{
	echo "build u-boot.bin ..."
	make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
	echo " OK "
}
build_clear()
{
	echo " make clean ,,,"
	make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- clean
	echo " OK "
}
show_help()
{
	echo " Build script for u-boot"
	echo "Invalid Options:"
	echo "        h   -show help "
	echo "        u   -build u-boot"
	echo "        c   -clean "
}
git_push()
{
	echo "git pull "
	git push -u origin_ssh master
	echo " OK "
}
if [ "$1" == "u" ];then
	build_uboot
	exit 1
elif [ "$1" == "c" ];then
	build_clear
	exit 1
elif [ "$1" == "" ];then
	show_help
	exit 1
elif [ "$1" == "h" ];then
	show_help
	exit 1
elif [ "$1" == "pull" ];then
	git_push
	exit 1
fi
